<template>
    <view class="purchase-item" @click="goDetail">
        <text class="purchase-name">供应商：{{ item.BuyModel.SupplierName ? item.BuyModel.SupplierName : "" }}</text>
        <text class="purchase-sn"
            >订单号：{{ item.BuyModel && item.BuyModel.OrderNo ? item.BuyModel.OrderNo : "" }}</text
        >
        <text class="purchase-time">入库时间：{{ item.InModel.StockInTime }}</text>
        <view>
            <text class="purchase-type">已入库：</text>
            <text class="purchase-num purchase-num-other">{{ item.InModel.AllAmount }}</text>
        </view>
    </view>
</template>

<script>
export default {
    components: {},
    props: {
        item: {
            type: Object,
            default: () => {},
        },
    },
    data() {
        return {}
    },
    mounted() {},
    onShow() {},
    methods: {
        goDetail() {
            this.easyGoTo("/pages_work/packet/purchase/detail?id=" + this.item.InModel.ID)
        },
    },
}
</script>

<style lang="scss">
.purchase-item {
    padding: $app-page-padding;
}
</style>
